home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / YAS3.M3 < prev   
Text File  |  1996-04-01  |  4KB  |  150 lines

  1. name Yasnac MX3
  2.  
  3. % 00
  4. / 00
  5. O >4
  6. N >4
  7. G >2
  8. g >2 G
  9. X ->3.>4
  10. Y ->3.>4
  11. Z ->3.>4
  12. A ->3.>4
  13. I ->3.>4
  14. J ->3.>4
  15. K ->3.>4
  16. Q ->3.>4
  17. R ->3.>4
  18. P >40
  19. F >3.1
  20. H >2
  21. D >2
  22. T >2
  23. M >2
  24. S >4
  25. c 00
  26.  
  27. ModalLetters X Y Z F R                # List of letters that are modal    
  28.  
  29. ModalGs                               # List of g codes that are modal    
  30.  
  31. Sequence#s N 0 10 10                  # Char, freq, incr & start          
  32. First#? N                             # Y or N  'Output 1st sequence no.  
  33. Last#? N                              # Y or N  'Output last sequence no. 
  34.  
  35. HCode X                               # X or X U  'Horizontal char.       
  36. VCode Y                               # Y or Y V  'Vertical char.         
  37. Dcode Z                               # Depth char.                       
  38. FeedCode F                            # Feed rate char.                   
  39.  
  40. Comment ( )                           # Begin End comment char.           
  41.  
  42. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  43. Coolant 8 9 7                         # On, Off & Mist m codes            
  44. DComp 41 42 40                        # Left, Right & Cancel m codes      
  45. LComp 43 49                           # On & Off codes                    
  46.  
  47. Feed G1                             # Linear move                       
  48. Rapid G0                            # Rapid positioning word            
  49. Cw G2                               # Circular move clockwise           
  50. Ccw G3                              # Circular move counter clockwise   
  51.  
  52. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  53.  
  54. CtrCode I J                           # I J or R or I J K L               
  55.  
  56. Spaces? Y                             # Y or N  'Spaces between words     
  57.  
  58. Incremental? N                        # Y or N  'Inc or abs output        
  59. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  60. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  61. Helical? N
  62.  
  63. ZRestart? Y                           # Y or N  'New cycle if diff. depths
  64.  
  65. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  66.  
  67.  
  68. Drill                                 # Drilling canned/manual cycle      
  69. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  70. end cancel
  71.  
  72. Peck                                  # Pecking canned/manual cycle       
  73. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate]
  74. end cancel
  75.  
  76. Tap                                   # Tapping canned/manual cycle       
  77. G84 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  78. end cancel
  79.  
  80. LTap                                  # Left handed tapping cycle         
  81. G74 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  82. end cancel
  83.  
  84. Ream                                  # Reaming canned/manual cycle       
  85. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  86. end cancel
  87.  
  88. Bore                                  # Boring canned/manual cycle        
  89. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  90. end cancel
  91.  
  92. Back                                  # Back boring canned/manual cycle   
  93. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  94. end cancel
  95.  
  96. Cancel                                # Cancel a canned/manual cycle      
  97. G80
  98. end
  99.  
  100. StartCode                             # Start of the program              
  101. %0
  102. O[Program#]
  103. End
  104.  
  105. 1stToolChange                         # First tool change                 
  106. g91 G28 Z0
  107. G90 G80 G40 G17
  108. c0
  109. N[Block]
  110. T[NextTool]
  111. M[Direct] S[Speed]
  112. G[Work]
  113. G0 X[H] Y[V]
  114. G43 Z[D] H[Lcomp]
  115. M[Cool]
  116. End
  117.  
  118. Infeed                                # Enable cutter comp                
  119. G[Side] X[H] Y[V] D[DComp] F[FRate]
  120. end
  121.  
  122. Outfeed                               # Disable cutter comp               
  123. G1 G40 X[H] Y[V]
  124. end
  125.  
  126. ToolChange                            # Secondary tool changes            
  127. M9
  128. G0 g91 G28 Z0
  129. M1
  130. N[Block]
  131. T[Tool]
  132. M6
  133. M[Direct] S[Speed]
  134. G0 G90 G[WORK] X[H] Y[V] T[NextTool]
  135. G43 Z[D] H[Lcomp]
  136. M[Cool]
  137. End
  138.  
  139. EndCode                               # End of the program                
  140. M9
  141. G0 g91 G28 Z0
  142. T[Tool1]
  143. M6
  144. g91 G28 X0 Y0
  145. M02
  146. %0
  147. End
  148.  
  149. Replace "c" with "(TOOL 1 IN SPINDLE)"
  150.